package com.example.mydialog;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    Button myBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myBtn = (Button)findViewById(R.id.btn);
        myBtn.setOnClickListener(v->{
            MyDialog myDialog = new MyDialog(this);
            myDialog.show();
        });
    }
}
